package request

type TmallFuwuHomedecorationSupplyruleListRequest struct {
	/*
	   每页大小，不传默认只查20条，最大不能超过500 defalutValue��20    */
	PageSize *int64 `json:"page_size,omitempty" required:"false" `
	/*
	   当前页数 defalutValue��1    */
	PageIndex *int64 `json:"page_index,omitempty" required:"false" `
	/*
	   业务唯一编号     */
	UniqueNo *string `json:"unique_no,omitempty" required:"false" `
}

func (s *TmallFuwuHomedecorationSupplyruleListRequest) SetPageSize(v int64) *TmallFuwuHomedecorationSupplyruleListRequest {
	s.PageSize = &v
	return s
}
func (s *TmallFuwuHomedecorationSupplyruleListRequest) SetPageIndex(v int64) *TmallFuwuHomedecorationSupplyruleListRequest {
	s.PageIndex = &v
	return s
}
func (s *TmallFuwuHomedecorationSupplyruleListRequest) SetUniqueNo(v string) *TmallFuwuHomedecorationSupplyruleListRequest {
	s.UniqueNo = &v
	return s
}

func (req *TmallFuwuHomedecorationSupplyruleListRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.PageSize != nil {
		paramMap["page_size"] = *req.PageSize
	}
	if req.PageIndex != nil {
		paramMap["page_index"] = *req.PageIndex
	}
	if req.UniqueNo != nil {
		paramMap["unique_no"] = *req.UniqueNo
	}
	return paramMap
}

func (req *TmallFuwuHomedecorationSupplyruleListRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
